import request from '@/utils/request'
//1516w获取排班表
export const dutyStuGetRotaServe = (obj) => {
  return request.get('/stu/duty', { params: { ...obj } })
}
//17w上传值班时间
export const dutyStuUploadTimeServe = (obj) => {
  return request.post('/stu/time', { ...obj })
}
//
//g
//2526wg获取上传值班时间
export const dutyGetTimeServe = (obj) => {
  return request.get('/stu/time', { params: obj })
}
//24新学期
export const dutyNewTermServe = () => {
  return request.post('/duty/newterm')
}
//23下一周
export const dutyNextWeekServe = () => {
  return request.post('/duty/nextweek')
}
//07查询全部人上传的值班时间段,一段一段查
export const dutyGetWorkTimePeopleServe = (obj) => {
  return request.get('/duty/time', { params: { ...obj } })
}
//09/10获取当前值班表
export const dutyGetRotaServe = (obj) => {
  return request.get('/duty', { params: { ...obj } })
}
//11编辑排班表格式
export const dutyEditFormatServe = (obj) => {
  return request.put('/duty/edit', { ...obj })
}
//12自动排班
export const dutyIntelligentServe = () => {
  return request.post('/duty')
}
//13手动修改排班
export const dutyArtificialServe = (obj) => {
  return request.put('/duty', { ...obj })
}
//21点击某时间返回空闲人列表
export const dutyGetPeopleServe = (obj) => {
  return request.get('/duty/person', { params: { ...obj } })
}
//14发布排班表
export const dutyPublishServe = () => {
  return request.post('/duty/post')
}
//27延续使用上一周
export const dutyContinueServe = () => {
  return request.post('/duty/continue')
}
